package myTest;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class MyTest {

	public static void main(String[] args) throws IOException {

		FileInputStream fis = new FileInputStream("C:/Users/chen_767/Desktop/cities.txt");
		InputStreamReader isr = new InputStreamReader(fis);
		BufferedReader br = new BufferedReader(isr);

		InputStreamReader isrSys = new InputStreamReader(System.in);
		BufferedReader brSys = new BufferedReader(isrSys);
		System.out.println("��ָ��2������");
		System.out.println("��һ��");
		String first = brSys.readLine();

		// System.out.println("�ڶ���");
		String second = brSys.readLine();

		String str;
		while (null != (str = br.readLine())) {
			if (str.contains(first) && str.contains(second)) {
				System.out.println("��ָ����2����������ͨ��");
				return;
			}
		}
		System.out.println("��ָ����2�������ǲ���ͨ��");

	}
}